package GoldenEagle;

public enum Option {
	DisplayTable(1), AddOrder(2), RemoveOrder(3), Billing(4), DisplayRecord(5), PrintMenu(
			7), PrintHelp(8), Empty(9);
	private int value;

	private Option(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public static Option getOption(String[] value) {
		switch (Integer.parseInt(value[0])) {
		case 1:
			return Option.DisplayTable;
		case 2:
			return Option.AddOrder;
		case 3:
			return Option.RemoveOrder;
		case 4:
			return Option.Billing;
		case 5:
			return Option.DisplayRecord;
		case 7:
			return Option.PrintMenu;
		case 8:
			return Option.PrintHelp;
		case 9:
			return Option.Empty;
		default:
			return Option.Empty;
		}
	}
}
